
import React from "react"
import "../css/Body.css"
import Company from "../component/Company"
import Team from "../component/Team"
import Mi from "../component/Mi"
import Develop from "../component/Develop"
import News from "../component/News"
import Join from "../component/Join"
import Inve from "../component/Inve"
import Contact from "../component/Contact"
import {
    HashRouter,
    Switch,
    Route,
    Link,
} from "react-router-dom";
class Body extends React.Component {
    render() {
        return (
            <HashRouter>
                <div>
                    <div className="body_box">
                        <div className="body_flex">
                            <div><Link to="/">公司简介</Link></div>
                            <div><Link to="/Team">管理团队</Link></div>
                            <div><Link to="/Mi">小米文化</Link></div>
                            <div><Link to="/Develop">发展经历</Link></div>
                            <div><Link to="/News">小米新闻</Link></div>
                            <div><Link to="/Join">加入小米</Link></div>
                            <div><Link to="/Inve">投资者关系</Link></div>
                            <div><Link to="/Contact">联系我们</Link></div>
                        </div>
                        <div> 
                            <Switch>
                                <Route path="/Team" component={Team} />
                                <Route path="/Mi" component={Mi} />
                                <Route path="/Develop" component={Develop} />
                                <Route path="/News" component={News} />
                                <Route path="/Join" component={Join} />
                                <Route path="/Inve" component={Inve} />
                                <Route path="/Contact" component={Contact} />
                                <Route path="/" component={Company} />
                            </Switch>
                        </div>
                    </div>
                </div>
                </HashRouter>
)
}
}
export default Body
   
